'use strict';
/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  // controller + 文件名字 + 函数名字
  router.get('/', controller.user.index)
  router.post('/api/login', controller.user.login)
};
